package ${package}.app;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication(scanBasePackages = "${package}")
@MapperScan("${package}.dao")
@ImportResource("classpath:/beans/*.xml")
@Slf4j
public class Application {
    public static void main(String[] args) {
        try {
            SpringApplication.run(Application.class, args);
        } catch (Exception ex) {
            log.error("启动异常", ex);
        }
    }
}
